home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / text / hyper / hsc_source.lha / hsc / source / Makefile.dodl < prev    next >
Makefile  |  1996-11-17  |  7KB  |  182 lines

  1. #
  2. # Makefile for hsc ("html sucks completely")
  3. #
  4. # Copyright (C) 1994,95,96  Thomas Aglassinger
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. #
  20. #====================================================================
  21. #
  22. # This Makefile should work on most Unixoid systems, but no 
  23. # optimisation is performed. Feel free to fool around with the
  24. # compiler-flags.
  25. #
  26. # (1) Use "make -f Makefile.dodl" to compile.
  27. #
  28. # (2) Copy "hsc/hsc", "hsctools/hscdepp" and "hsctools/hscpitt" to
  29. #     anywhere in your search-path.
  30. #
  31. # (3) Use "make -f Makefile.dodl sterile" for a total cleanup. Maybe 
  32. #     you also have to pass an option to make to ignore the 
  33. #     return-code of the "rm"-command; usually, this is "-i".
  34. #
  35. # (4) Read the docs, section "Installation" what to do with 
  36. #     "hsc.prefs".
  37. #
  38. # IMPORTANT: Don't forget to hit the return-key after typing commands
  39. #            in the shell!
  40. #
  41.  
  42. #------------------------------------------------
  43. # this one should always work
  44. #
  45. CC    = cc
  46. CFLAGS    =
  47.  
  48. #------------------------------------------------
  49. # this one should also work and even optimise
  50. #
  51. #CC    = cc
  52. #CFLAGS    = -s -O
  53.  
  54. #------------------------------------------------
  55. # works with gcc
  56. #
  57. #CC    = gcc
  58. #CFLAGS = -s -O2
  59.  
  60. #--------------------------------------------------------------------
  61. # avoid fooling around below this line
  62. #--------------------------------------------------------------------
  63.  
  64. SYS    = -DUNIX
  65. COMP    = $(CC) -o $@ $(SYS) -I. -c
  66. LINK    = $(CC) -o $@ $(SYS) -I.
  67. MOVE    = mv
  68. DELETE    = rm -f
  69.  
  70. #--------------------------------------------------------------------
  71. # do not touch anything below this line
  72. #--------------------------------------------------------------------
  73.  
  74. #
  75. # compile all tools
  76. #
  77. all : hsc/all_hsc hsctools/all_depp
  78.  
  79. # implict rule for object-files
  80. # (old-style implicit rule)
  81. .c.o :
  82.     $(COMP) $*.c $(CFLAGS)
  83.  
  84. hsc/all_hsc : hsclib/all_hscl.o hscprj/all_pitt.o hsc/all_hsc.o \
  85.         ugly/all_ugly.o
  86.     $(LINK) hsc/all_hsc.o hsclib/all_hscl.o hscprj/all_pitt.o \
  87.         ugly/all_ugly.o $(CMODE)
  88.     $(COPY) hsc/all_hsc hsc/hsc
  89.  
  90. hsctools/all_depp : hsctools/all_depp.o hsclib/all_hscl.o hscprj/all_pitt.o \
  91.         ugly/all_ugly.o
  92.     $(LINK) hsctools/all_depp.o hsclib/all_hscl.o hscprj/all_pitt.o \
  93.         ugly/all_ugly.o $(CMODE)
  94.     $(COPY) hsctools/all_depp hsctools/hscdepp
  95.  
  96. hsctools/all_pitt : hsctools/all_pitt.o hsclib/all_hscl.o hscprj/all_pitt.o \
  97.         ugly/all_ugly.o
  98.     $(LINK) hsctools/all_pitt.o hsclib/all_hscl.o hscprj/all_pitt.o \
  99.         ugly/all_ugly.o $(CMODE)
  100.     $(COPY) hsctools/all_pitt hsctools/hscdepp
  101.  
  102. #
  103. # cleanup - remove all objects and executables
  104. #
  105. clean :
  106.     $(DELETE) hsc/*.o
  107.     $(DELETE) hsctools/*.o
  108.     $(DELETE) hsclib/*.o
  109.     $(DELETE) hscprj/*.o
  110.     $(DELETE) ugly/*.o
  111.  
  112. all_clean :
  113.     $(DELETE) ugly/all_ugly.o
  114.     $(DELETE) hsclib/all_hscl.o
  115.     $(DELETE) hsc/all_hsc.o
  116.     $(DELETE) hsc/all_hsc
  117.     $(DELETE) hsctools/all_depp.o
  118.     $(DELETE) hsctools/all_depp
  119.     $(DELETE) hsctools/all_pitt.o
  120.     $(DELETE) hsctools/all_pitt
  121.  
  122. sterile : clean all_clean
  123.     $(DELETE) hsc/hsc
  124.     $(DELETE) hsctools/hscdepp
  125.     $(DELETE) hsctools/hscpitt
  126.  
  127. #
  128. # the dependencies below are created using `MkDepend' by Lars Düning,
  129. # available from amient:dev/c/MkDepend.lha
  130. #
  131.  
  132. # --- DO NOT MODIFY THIS LINE -- AUTO-DEPENDS FOLLOW ---
  133. hsc/all_hsc.o : hsc/hsc.c hsc/callback.c hsc/output.c hsc/args.c \
  134.     hsc/status.c hsc/global.c hsc/status.h hsc/output.h hsc/callback.h \
  135.     hsc/args.h ugly/returncd.h ugly/uargs.h hscprj/project.h ugly/prginfo.h \
  136.     hsc/global.h hsc/hsc_rev.h hscprj/license.h ugly/fname.h ugly/infile.h \
  137.     ugly/utypes.h ugly/umemory.h ugly/utypes.h hsc/hdebug.h ugly/ustring.h \
  138.     ugly/umemory.h ugly/expstr.h ugly/dllist.h hsclib/hsclib.h \
  139.     ugly/expstr.h ugly/dllist.h ugly/udebug.h hsclib/linit.h \
  140.     hsclib/include.h hsclib/inc_base.h hsclib/lstatus.h hsclib/lmessage.h \
  141.     hsclib/hscprc.h hsclib/tag.h hsclib/entity.h hsclib/attrib.h \
  142.     hscprj/document.h hsclib/msgid.h hsclib/ldebug.h
  143.  
  144. hsclib/all_hscl.o : hsclib/tag_macr.c hsclib/tag_if.c hsclib/tag_hsc.c \
  145.     hsclib/tag_a.c hsclib/tag_misc.c hsclib/size.c hsclib/linit.c \
  146.     hsclib/include.c hsclib/parse.c hsclib/deftag.c hsclib/defattr.c \
  147.     hsclib/posteval.c hsclib/eval.c hsclib/uri.c hsclib/skip.c \
  148.     hsclib/input.c hsclib/lstatus.c hsclib/hscprc.c hsclib/idref.c \
  149.     hsclib/attrib.c hsclib/tag.c hsclib/entity.c hsclib/lmessage.c \
  150.     ugly/ustring.h ugly/infile.h ugly/umemory.h ugly/expstr.h ugly/dllist.h \
  151.     ugly/utypes.h hsclib/msgid.h hsclib/ldebug.h hsclib/parse.h \
  152.     hsclib/include.h hsclib/deftag.h hsclib/defattr.h hsclib/inc_tagcb.h \
  153.     hsclib/skip.h hsclib/eval.h hsclib/tag_if.h hsclib/tag_macr.h \
  154.     hsclib/uri.h ugly/fname.h hscprj/document.h hsclib/inc_base.h \
  155.     hsclib/tag_misc.h hsclib/tag_hsc.h hsclib/tag_a.h hsclib/input.h \
  156.     ugly/ufile.h hsclib/size.h hscprj/project.h hsclib/posteval.h \
  157.     hsclib/idref.h ugly/returncd.h ugly/ustrlist.h hsclib/tag.h \
  158.     hsclib/entity.h ugly/utypes.h ugly/dllist.h ugly/expstr.h ugly/udebug.h \
  159.     hsclib/hscprc.h hsclib/lstatus.h hsclib/lmessage.h hsclib/attrib.h \
  160.     ugly/ustring.h
  161.  
  162. hscprj/all_hscp.o : hscprj/writeprj.c hscprj/readprj.c hscprj/project.c \
  163.     hscprj/license.c hscprj/document.c hscprj/project.h hscprj/document.h \
  164.     ugly/ustring.h ugly/infile.h ugly/umemory.h ugly/expstr.h ugly/dllist.h \
  165.     ugly/utypes.h hscprj/pdefs.h hscprj/pdebug.h hsclib/ldebug.h \
  166.     ugly/utypes.h ugly/dllist.h ugly/expstr.h ugly/udebug.h
  167.  
  168. hsctools/all_depp.o : hsctools/hscdepp.c hscprj/license.h hscprj/project.h \
  169.     hscprj/document.h ugly/returncd.h ugly/prginfo.h ugly/uargs.h \
  170.     ugly/infile.h ugly/expstr.h ugly/dllist.h ugly/ustring.h \
  171.     hsctools/depp_rev.h ugly/umemory.h ugly/utypes.h hsclib/ldebug.h \
  172.     ugly/umemory.h ugly/utypes.h ugly/dllist.h ugly/expstr.h ugly/udebug.h
  173.  
  174. ugly/all_ugly.o : ugly/prginfo.c ugly/infile.c ugly/ustrlist.c ugly/uargs.c \
  175.     ugly/ufile.c ugly/dllist.c ugly/fname.c ugly/expstr.c ugly/ustring.c \
  176.     ugly/umemory.c ugly/udebug.h ugly/utypes.h ugly/umemory.h ugly/infile.h \
  177.     ugly/fname.h ugly/ustring.h ugly/expstr.h ugly/ustrlist.h \
  178.     ugly/args_hlp.c ugly/args_prp.c ugly/args_set.c ugly/args_fre.c \
  179.     ugly/uargs.h ugly/dllist.h ugly/ufile.h ugly/udebug.h
  180.  
  181. # --- DO NOT MODIFY THIS LINE -- AUTO-DEPENDS PRECEDE ---
  182.